//
//  FavorateViewController.m
//  News
//
//  Created by 宋浩文的pro on 16/6/6.
//  Copyright © 2016年 songhaowen. All rights reserved.
//

#import "FavorateViewController.h"

@interface FavorateViewController ()

@property (nonatomic, strong) UIWebView *webView;

@end

@implementation FavorateViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.hidesBottomBarWhenPushed = YES;
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"返回"] style:UIBarButtonItemStylePlain target:self action:@selector(back)];
    
    
    self.navigationItem.title = @"新闻详情";
}

- (void)back
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)setModel:(FavorateModel *)model
{
    _model = model;
    
    
    
    self.webView = [[UIWebView alloc] initWithFrame:self.view.bounds];
    [self.view addSubview:self.webView];
    [self.webView loadHTMLString:model.html_string baseURL:nil];
}



@end
